package _17作业._抽象类t1;

public class Demo {
    public static void main(String[] args) {
        Rooster r =new Rooster(2,"红色");
        r.eat();
        r.crow();

        Duck duck = new Duck(1,"黑色");
        duck.eat();
        duck.swim();
    }
}
